--开拓精神
local kaituojingsheng = fk.CreateSkill {
    name = "mcdh_kaituojingsheng",
    tags = {Skill.Lord}
}

kaituojingsheng:addEffect(fk.DamageCaused,{
    can_trigger = function(self, event, target, player, data)
       return player:hasSkill(self.name) and target and target ~= player and not target.dead and not player:inMyAttackRange(data.to)
    end,
    on_cost = function(self, event, target, player, data)
        local room  = player.room
        return room:askToSkillInvoke(target,{skill_name = self.name,prompt = "#kaituojingsheng:"..player.id})
    end,
    on_use = function(self, event, target, player, data)
        local room = player.room
        room:handleAddLoseSkills(player,"mcdh_wofuzhengchang")
    end
})

Fk:loadTranslationTable{
    ["mcdh_kaituojingsheng"] = "开拓精神",
    [":mcdh_kaituojingsheng"] = "主公技，其他角色对你攻击范围外的角色造成伤害后，其可以令你获得〖斡赴正场〗。",
    ["#kaituojingsheng"] = "开拓精神:令 %src 获得〖斡赴正场〗。",
}

return kaituojingsheng